import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'


const UserRoute:Array<RouteRecordRaw> = [
  {
    path:"/user",
    name:"UserManage",
    meta:{
      name:"用户管理",
      icon:"el-icon-user-solid"
    },
    component:() => import(/* webpackChunkName: "Index" */ '@/views/layout/layout.vue'),
    children:[
      {
        path:"/user/list",
        name:"UserList",
        meta:{
          name:"用户列表",
          icon:"el-icon-user"
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/userManage/userList/user.vue'),
      },
      {
        path:"/user/admin",
        name:"Admin",
        meta:{
          name:"管理员账号",
          icon:"el-icon-s-tools"
        },
        component:() => import(/* webpackChunkName: "Index" */ '@/views/userManage/adminManage/admin.vue'),
      },
    ]
  }
]

export default UserRoute